home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_6984.txt < prev    next >
Text File  |  1990-10-02  |  8KB  |  337 lines

  1. -- card: 6984 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 5390
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   send cardOpened to background
  9. end openCard
  10.  
  11. on move
  12.   global direction,demonDead,chase,blasting,eDoorOpen
  13.   if direction = "up" then
  14.     beep
  15.     put "You can't reach the opening." into field 3
  16.     exit move
  17.   end if
  18.   if direction = "west" then
  19.     if eDoorOpen
  20.     then
  21.     if demonDead then
  22.       go to card id 13815
  23.     else
  24.       go to card id 13242
  25.     end if
  26.   else
  27.     beep
  28.     put "The door is locked.  You can not go that way." into field 3
  29.   end if
  30.   exit move
  31. end if
  32. pass move
  33. end move
  34.  
  35.  
  36. on closeCard
  37.   set the cursor to 4
  38.   put "" into field 3
  39. end closeCard
  40.  
  41. on take
  42.   global object,carried
  43.   -- remember to update carried if you do not pass take
  44.   pass take
  45. end take
  46.  
  47. on drop
  48.   global object,dropRoom,carried
  49.   -- remember to update carried if you do not pass drop
  50.   pass drop
  51. end drop
  52.  
  53. on use
  54.   global object,carried,eDoorOpen
  55.   put last word of object into obj
  56.   delete first char of obj
  57.   delete last char of obj
  58.   if obj="key" then
  59.     put "The door leading east is now unlocked and you may pass through." into field 3
  60.     put true into eDoorOpen
  61.     exit use
  62.   end if
  63.   -- update carried if use results in loss of object
  64.   pass use
  65. end use
  66.  
  67.  
  68.  
  69.  
  70.  
  71. -- part 16 (button)
  72. -- low flags: 80
  73. -- high flags: 2000
  74. -- rect: left=122 top=230 right=266 bottom=156
  75. -- title width / last selected line: 0
  76. -- icon id / first selected line: 9301 / 9301
  77. -- text alignment: 1
  78. -- font id: 0
  79. -- text size: 12
  80. -- style flags: 0
  81. -- line height: 16
  82. -- part name: knife
  83. ----- HyperTalk script -----
  84. on mouseUp
  85.   global takeFlag,examFlag,object,cardID
  86.   put the name of the target into object
  87.   if takeFlag = true
  88.   then send take to card id cardID
  89. else put "a knife" into field 3
  90. put false into examFlag
  91. end mouseUp
  92.  
  93.  
  94.  
  95. -- part 17 (button)
  96. -- low flags: 80
  97. -- high flags: 2000
  98. -- rect: left=47 top=226 right=262 bottom=81
  99. -- title width / last selected line: 0
  100. -- icon id / first selected line: 1015 / 1015
  101. -- text alignment: 1
  102. -- font id: 0
  103. -- text size: 12
  104. -- style flags: 0
  105. -- line height: 16
  106. -- part name: nodule
  107. ----- HyperTalk script -----
  108. on mouseUp
  109.   global takeFlag,examFlag,object,cardID
  110.   put the name of the target into object
  111.   if takeFlag = true
  112.   then send take to card id cardID
  113. else put "a silicon sphere" into field 3
  114. put false into examFlag
  115. end mouseUp
  116.  
  117.  
  118.  
  119. -- part 18 (button)
  120. -- low flags: 80
  121. -- high flags: 2000
  122. -- rect: left=191 top=206 right=242 bottom=225
  123. -- title width / last selected line: 0
  124. -- icon id / first selected line: 14953 / 14953
  125. -- text alignment: 1
  126. -- font id: 0
  127. -- text size: 12
  128. -- style flags: 0
  129. -- line height: 16
  130. -- part name: ladder
  131. ----- HyperTalk script -----
  132. on mouseUp
  133.   global takeFlag,examFlag,object,cardID
  134.   put the name of the target into object
  135.   if takeFlag = true
  136.   then send take to card id cardID
  137. else put "a rope ladder" into field 3
  138. put false into examFlag
  139. end mouseUp
  140.  
  141.  
  142.  
  143. -- part 19 (button)
  144. -- low flags: 80
  145. -- high flags: 2000
  146. -- rect: left=63 top=148 right=184 bottom=97
  147. -- title width / last selected line: 0
  148. -- icon id / first selected line: 1019 / 1019
  149. -- text alignment: 1
  150. -- font id: 0
  151. -- text size: 12
  152. -- style flags: 0
  153. -- line height: 16
  154. -- part name: bomb
  155. ----- HyperTalk script -----
  156. on mouseUp
  157.   global takeFlag,examFlag,object,cardID
  158.   put the name of the target into object
  159.   if takeFlag = true
  160.   then send take to card id cardID
  161. else put "a time bomb" into field 3
  162. put false into examFlag
  163. end mouseUp
  164.  
  165.  
  166.  
  167. -- part 20 (button)
  168. -- low flags: 80
  169. -- high flags: 2000
  170. -- rect: left=21 top=188 right=224 bottom=55
  171. -- title width / last selected line: 0
  172. -- icon id / first selected line: 24317 / 24317
  173. -- text alignment: 1
  174. -- font id: 0
  175. -- text size: 12
  176. -- style flags: 0
  177. -- line height: 16
  178. -- part name: key
  179. ----- HyperTalk script -----
  180. on mouseUp
  181.   global takeFlag,examFlag,object,cardID
  182.   put the name of the target into object
  183.   if takeFlag = true
  184.   then send take to card id cardID
  185. else put "a key" into field 3
  186. put false into examFlag
  187. end mouseUp
  188.  
  189.  
  190.  
  191. -- part 21 (button)
  192. -- low flags: 80
  193. -- high flags: 2000
  194. -- rect: left=182 top=126 right=162 bottom=216
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 7012 / 7012
  197. -- text alignment: 1
  198. -- font id: 0
  199. -- text size: 12
  200. -- style flags: 0
  201. -- line height: 16
  202. -- part name: gem
  203. ----- HyperTalk script -----
  204. on mouseUp
  205.   global takeFlag,examFlag,object,cardID
  206.   put the name of the target into object
  207.   if takeFlag = true
  208.   then send take to card id cardID
  209. else put "a glowing gem" into field 3
  210. put false into examFlag
  211. end mouseUp
  212.  
  213.  
  214.  
  215. -- part 22 (button)
  216. -- low flags: 80
  217. -- high flags: 2000
  218. -- rect: left=11 top=226 right=262 bottom=45
  219. -- title width / last selected line: 0
  220. -- icon id / first selected line: 23078 / 23078
  221. -- text alignment: 1
  222. -- font id: 0
  223. -- text size: 12
  224. -- style flags: 0
  225. -- line height: 16
  226. -- part name: orb
  227. ----- HyperTalk script -----
  228. on mouseUp
  229.   global takeFlag,examFlag,object,cardID
  230.   put the name of the target into object
  231.   if takeFlag = true
  232.   then send take to card id cardID
  233. else put "a crystal orb" into field 3
  234. put false into examFlag
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 33 (button)
  240. -- low flags: 00
  241. -- high flags: 0000
  242. -- rect: left=93 top=0 right=20 bottom=159
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: 
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   global examFlag,direction,cardID
  254.   if examFlag then
  255.     put "a shaft leading up" into field 3
  256.     put false into examFlag
  257.   else
  258.     put "up" into direction
  259.     send move to card id cardID
  260.   end if
  261. end mouseUp
  262.  
  263.  
  264.  
  265. -- part 42 (button)
  266. -- low flags: 00
  267. -- high flags: 0000
  268. -- rect: left=11 top=93 right=187 bottom=47
  269. -- title width / last selected line: 0
  270. -- icon id / first selected line: 0 / 0
  271. -- text alignment: 1
  272. -- font id: 0
  273. -- text size: 12
  274. -- style flags: 0
  275. -- line height: 16
  276. -- part name: 
  277. ----- HyperTalk script -----
  278. on mouseUp
  279.   global examFlag,direction,cardID,eDoorOpen,demonDead,takeFlag
  280.   if examFlag then
  281.     put "a barred door leading west.  The door is unlocked.  " into field 3
  282.     if demonDead=false then
  283.       put "  Peering through the bars you can see the orb of power " after field 3
  284.       put "in the dimly lit room beyond!" after field 3
  285.     end if
  286.     put false into examFlag
  287.   else
  288.     if takeFlag then
  289.       put "You can't take the door." into field 3
  290.       put false into takeFlag
  291.     else
  292.       put "west" into direction
  293.       send move to card id cardID
  294.     end if
  295.   end if
  296. end mouseUp
  297.  
  298.  
  299.  
  300. -- part 43 (button)
  301. -- low flags: 00
  302. -- high flags: 0000
  303. -- rect: left=101 top=174 right=218 bottom=180
  304. -- title width / last selected line: 0
  305. -- icon id / first selected line: 0 / 0
  306. -- text alignment: 1
  307. -- font id: 0
  308. -- text size: 12
  309. -- style flags: 0
  310. -- line height: 16
  311. -- part name: 
  312. ----- HyperTalk script -----
  313. on mouseUp
  314.   global examFlag,takeFlag,direction,cardID
  315.   if takeFlag then
  316.     put "Look, I don't want to get gross here, but the body is badly decayed.  You really don't want it." into field 3
  317.     put false into takeFlag
  318.   else
  319.     put "A body.  Quite dead." into field 3
  320.     put false into examFlag
  321.   end if
  322. end mouseUp
  323.  
  324.  
  325.  
  326. -- part contents for background part 25
  327. ----- text -----
  328. Round Room
  329. (looking north)
  330.  
  331. -- part contents for background part 24
  332. ----- text -----
  333. You are in a round room.  There is a doorway to the west with a door made of massive iron bars.  There is a hole in the ceiling.  In the center of the floor is the body of an unsuccessful adventurer who appears to have broken his neck.  It looks like it has been there quite some time (yeech).
  334.  
  335. -- part contents for background part 36
  336. ----- text -----
  337. 1